package com.example.demo.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class FooDTO {

    @NotNull(message = "id不可为空")
    private long id;

    @NotBlank(message = "name不可为空")
    private String name;

}
